package com.wwj.my_ummary.util;

/**
 * date 2020/11/6
 *
 * @author
 */

public class NeoResponse {

    private String message;
    private String data;
    private int state;

    public NeoResponse(String message, String data, int state) {
        this.message = message;
        this.data = data;
        this.state = state;
    }

    public static NeoResponse body(String message, String data, int state) {
        return new NeoResponse(message, data, state);
    }

    public static NeoResponse success(String message, String data) {
        return new NeoResponse(message, data, ResultConstant.SUCCESS_CODE);
    }

    public static NeoResponse fail(String message, String data) {
        return new NeoResponse(message, data, ResultConstant.FAIL_CODE);
    }
}
